
varying vec4 normal;
varying vec4 point;

void main(void)
{
    ///Interpolate normal
    vec3 tmp = normalize( gl_NormalMatrix * gl_Normal );
    normal = vec4(tmp.x, tmp.y, tmp.z, 1.0);
    normal = normalize(normal);

    ///Interpolate point
    point = vec4(gl_Vertex);

    vec4 meshColor = vec4( 0.4, 0.8, 0.3, 1.0 );

    gl_FrontColor = meshColor;

    gl_Position = ftransform();

}
